cmake_minimum_required(VERSION 3.16)
project(video_on_demand VERSION 1.0)
set(name 115211333)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED true)
#二进制名字
set(PROJECT_BINRAY_NAME video_on_demand)
add_definitions(-DBIN_NAME="${PROJECT_BINRAY_NAME}")
#添加编译选项
if(UNIX)
    set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
    set(CMAKE_CXX_FLAGS_RELEASE "-g -O2")
else(WIN32)
    set(CMAKE_CXX_FLAGS_DEBUG "/g /O0")
    set(CMAKE_CXX_FLAGS_RELEASE "/g /O2")
endif()


#添加jsoncpp
include(module/jsoncpp.cmake)
#添加boost1.77.0依赖
include(module/zltoolkit.cmake)
#添加aws s3
include(module/aws_s3.cmake)
#添加转封装库
include(module/media.cmake)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_executable(${PROJECT_BINRAY_NAME} main.cpp)
target_link_libraries(${PROJECT_BINRAY_NAME} ZLToolKit_static)

enable_testing()
add_subdirectory(test)